gusucode.com > 忠网网站广告管理系统 ZonGG V1.3 > 忠网网站广告管理系统 ZonGG V1.3\code\Login.asp
<!-- #include file="include/Config.asp" --> <!-- #include file="include/conn.asp" --> <!-- #include file="include/Function.asp" --> <!--#include file=include/Js.inc --> <% ''******************************************************** '' 判断是否已登陆,如果未登陆则显示登陆信息 ''******************************************************** if Session("ZonGGadminid") ="" and trim(request("log"))<>"no" and trim(request("log"))<>"yes" then response.write "<base target='_parent'>" response.redirect "login.asp?log=no" response.end end if if trim(request("log"))="yes" then '' 登陆验证 rs.open "select aid,admin,power from Admin where admin='"&Trim(request("admin"))&"' and passwd='"&Trim(request("passwd"))&"'",conn,1,1 if not rs.eof then Session("ZonGGadminid")=rs(0) Session("ZonGGadminnm")=rs(1) Session("ZonGGadminqx")=rs(2) response.redirect "index.asp" else response.redirect "login.asp?log=no&mm=err" end if end if if trim(request("log"))="no" then '' 登陆界面 %> <html> <head> <meta http-equiv=Content-Language content=zh-cn> <meta http-equiv=Content-Type content="text/html; charset=gb2312" charset=gb2312> <title>忠网广告 系统 缩写:ZonGG</title> <meta http-equiv=Pragma content=no-cache> <STYLE> <!-- body,p,td { font-family:Verdana, Arial, Helvetica, sans-serif, 宋体; font-size:8pt; color:#000000 } body { SCROLLBAR-FACE-COLOR:#ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #4F7EB9; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #4F7EB9; SCROLLBAR-TRACK-COLOR: #ffffff; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; background-color:#FFFFFF; background-attachment: fixed; background-repeat: no-repeat; background-position: right bottom } INPUT { BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-LEFT-COLOR: #c0c0c0; BORDER-BOTTOM-COLOR: #c0c0c0; BORDER-TOP-COLOR: #c0c0c0; BORDER-RIGHT-COLOR: #c0c0c0; background-color: #ffffff; CURSOR: HAND; FONT-SIZE: 8pt; font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; COLOR: #000000; } A:hover {text-decoration: underline; color:#007dff} a { COLOR: #333333; TEXT-DECORATION: none } --></STYLE> <base target="_parent"> </head> <body><center> <br><br> <table border="0" cellPadding="0" cellSpacing="0" height="450" width="680" align=center> <tr height=50><td colspan="3" > <table style="BORDER-COLLAPSE: collapse" cellspacing=0 cellpadding=0 width="100%" align=center border=0> <tbody> <tr> <td width=5 background="pic/top_left.jpg"> </td> <td background="pic/top_mid.jpg" style="color: #FFFFFF; font-size: 12pt" width=200><img border="0" src="logo.gif" width="200" height="50"></td> <td background="pic/top_mid.jpg" style="color: #FFFFFF; font-size: 9pt" align=center></td> <td background="pic/top_mid.jpg" valign="bottom" width=300 align=center style="color: #FFFFFF; font-size: 8pt"><%=Version%></td> <td width=21><img height=50 src="pic/top_right.jpg" width=21></td> </tr><tr bgcolor=#ffcc00 height=1><td width=10></td><td colspan="3"></td><td></td></tr> </tbody> </table> </td></tr> <tr><TD bgColor=#3373ce width="2"><img border="0" src="pic/k.gif" width=2></TD> <td width=100% style="background-attachment: fixed; background-repeat: no-repeat; background-position: right bottom" valign="top"> <table width=100% id="table4"> <tr><td style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <font color="#3373CE"> </font></td></tr> <tr><td style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <form method="POST" action="login.asp?log=yes"> <table border="0" id="table5"> <tr> <td align="right" height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000" width="60"> </td> <td align="right" height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <b><font size="2" color="#FF9900">请选择您的管理帐号:</font></b></td> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <select size="1" name="admin"> <%rs.open "Select * From Admin",conn,1,1 Do while not rs.eof response.write "<option selected value='"&Rs(1)&"'>"&Rs(1)&"</option>" Rs.movenext Loop Rs.close %> </select></td> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <font color="#3373CE"><i>每次登陆管理后最长静止保持20分钟</i></font> </td> </tr> <tr> <td align="right" height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000" width="60"> </td> <td align="right" height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <font color="#FF3300"><b>登陆密码:</b></font></td> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <input type="password" name="passwd" size="18" maxlength="20"></td> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <input type="submit" value="登陆广告管理" name="B1" style="float: right"></td> </tr> <tr> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000" width="60"> </td> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> </td> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> <%if trim(request("mm"))="err" then response.write "<font color=red>密码与管理帐号不符!</font><br><br>"%> </td> <td height="30" style="font-family: Verdana, Arial, Helvetica, sans-serif, 宋体; font-size: 8pt; color: #000000"> </td> </tr> </table> <p align="center"><font color="#3373CE"> </font></p> </form> </td></tr> </table> <table align=center><TR><TD> <!-- #include file="version.htm" --> </TD></TR></table> </td><TD bgColor=#3373ce width="2"><img border="0" src="pic/k.gif" width=2></TD> </tr> <tr height=30><td colspan="3" > <div align="center"> <center> <table style="BORDER-COLLAPSE: collapse" bordercolor=#111111 cellspacing=0 cellpadding=0 width="100%" border=0> <tbody> <tr> <td width=10><img height=30 src="pic/left.jpg" width=21></td> <td background="pic/mid.jpg" style="color: #FFFFFF; font-size: 9pt" > <%=Copyright&Copy_Ver%></td> <td width=21><img height=30 src="pic/right.jpg" width=21></td> </tr> </tbody> </table> </center> </div> </td></tr> </table> </center> </body></html> <% response.end Else %> <html> <head> <meta http-equiv=Content-Language content=zh-cn> <meta http-equiv=Content-Type content="text/html; charset=gb2312" charset=gb2312> <title>忠网广告 系统 缩写:ZonGG</title> <meta http-equiv=Pragma content=no-cache> <link href=css.css rel=STYLESHEET type=text/css> </head> <body><center> <% end if %>